#include "form.h"
#include "ui_form.h"

Form::Form(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Form)
{
    ui->setupUi(this);
    m_3d_widget = new OccView(ui->widget);
}
Form::~Form()
{
    delete ui;
    delete m_3d_widget;
}

void Form::mousePressEvent(QMouseEvent *event)
{
    if(event->buttons() & Qt::RightButton){
        m_3d_widget->loadFileModel();
    }
}

void Form::on_lineEdit_textEdited(const QString &arg1)
{
    m_3d_widget->numPoints=arg1.toUInt();
    qDebug()<<m_3d_widget->numPoints;
}

